import request from '@/utils/request'

// 查询商品详情列表
export function listSuppliergoods(query) {
  return request({
    url: '/suppliergoods/suppliergoods/list',
    method: 'get',
    params: query
  })
}

// 查询商品详情详细
export function getSuppliergoods(supplierGoodsId) {
  return request({
    url: '/suppliergoods/suppliergoods/' + supplierGoodsId,
    method: 'get'
  })
}

// 新增商品详情
export function addSuppliergoods(data) {
  return request({
    url: '/suppliergoods/suppliergoods',
    method: 'post',
    data: data
  })
}

// 修改商品详情
export function updateSuppliergoods(data) {
  return request({
    url: '/suppliergoods/suppliergoods',
    method: 'put',
    data: data
  })
}

// 删除商品详情
export function delSuppliergoods(supplierGoodsId) {
  return request({
    url: '/suppliergoods/suppliergoods/' + supplierGoodsId,
    method: 'delete'
  })
}
